/* ===== EIGHTEEN GRAVITY TOOL - COMPLETE STYLES ===== */

/* ===== VARIABLES ===== */
:root {
    --eighteen-primary-bg: #f5f4ed;
    --eighteen-secondary-bg: #ffc62f;
    --eighteen-font-color: #1e1e1e;
    --eighteen-gradient-1: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
    --eighteen-gradient-2: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
}

/* ===== MODAL OVERLAY ===== */
.eighteen-gravity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.eighteen-gravity-modal.active {
    display: flex;
}

/* ===== MODAL CONTENT ===== */
.eighteen-modal-content {
    background: var(--eighteen-gradient-1);
    border-radius: 30px;
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: eighteenSlideUp 0.5s ease-out;
    position: relative;
    border: 6px solid var(--eighteen-secondary-bg);
}

@keyframes eighteenSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== CLOSE BUTTON ===== */
.eighteen-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--eighteen-font-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: bold;
}

.eighteen-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #ff4444;
}

/* ===== MODAL HEADER ===== */
.eighteen-modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--eighteen-secondary-bg);
}

.eighteen-modal-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--eighteen-font-color);
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.eighteen-score-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--eighteen-secondary-bg);
    padding: 12px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.eighteen-score-label {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

.eighteen-score-value {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    color: var(--eighteen-font-color);
}

/* ===== TAB NAVIGATION ===== */
.eighteen-tab-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.eighteen-tab-btn {
    background: white;
    border: 3px solid #ddd;
    padding: 15px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.eighteen-tab-btn.active {
    background: var(--eighteen-secondary-bg);
    border-color: var(--eighteen-font-color);
    transform: translateY(-3px);
}

.eighteen-tab-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.eighteen-tab-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

/* ===== TAB PANES ===== */
.eighteen-modal-body {
    background: var(--eighteen-primary-bg);
    border-radius: 20px;
    padding: 25px;
    min-height: 400px;
}

.eighteen-tab-pane {
    display: none;
    animation: eighteenFadeIn 0.4s ease-out;
}

.eighteen-tab-pane.active {
    display: block;
}

@keyframes eighteenFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== THEORY TAB ===== */
.eighteen-theory-sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 3px solid #ddd;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.eighteen-theory-sub-nav-btn {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.eighteen-theory-sub-nav-btn:hover {
    background: #f0f0f0;
    color: var(--eighteen-font-color);
}

.eighteen-theory-sub-nav-btn.active {
    background: var(--eighteen-secondary-bg);
    color: var(--eighteen-font-color);
    border-bottom-color: var(--eighteen-font-color);
}

.eighteen-theory-sub-pane {
    animation: eighteenFadeIn 0.3s ease-out;
}

.eighteen-theory-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-theory-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--eighteen-font-color);
    margin-bottom: 20px;
    text-align: center;
}

.eighteen-theory-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    color: #333;
    margin: 15px 0;
}

/* Theory Visuals */
.eighteen-theory-image-container {
    text-align: center;
    margin: 25px 0;
}

.eighteen-gravity-demo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.eighteen-earth-demo {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #4a90e2, #2c5aa0);
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.eighteen-apple-demo {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ff6b6b, #c92a2a);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: eighteenAppleFall 2s infinite;
}

@keyframes eighteenAppleFall {

    0%,
    100% {
        top: 0;
    }

    50% {
        top: 140px;
    }
}

.eighteen-arrow-down {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--eighteen-secondary-bg);
}

.eighteen-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.eighteen-example-item {
    background: var(--eighteen-gradient-1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.eighteen-example-item:hover {
    transform: translateY(-5px);
}

.eighteen-example-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.eighteen-example-item p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

.eighteen-space-demo {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 30px auto;
    max-width: 100%;
}

.eighteen-sun-demo {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd93d, #ff9100);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(255, 153, 0, 0.7);
    animation: eighteenSunGlow 2s infinite;
}

@keyframes eighteenSunGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 153, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 153, 0, 0.9);
    }
}

.eighteen-planet-orbit {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #6bcf7f, #2e8b57);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    animation: eighteenOrbit 4s linear infinite;
    transform-origin: 0 0;
}

@keyframes eighteenOrbit {
    from {
        transform: rotate(0deg) translateX(100px);
    }

    to {
        transform: rotate(360deg) translateX(100px);
    }
}

.eighteen-fun-fact {
    background: var(--eighteen-secondary-bg);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    border-left: 5px solid var(--eighteen-font-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--eighteen-font-color);
}

.eighteen-ready-message {
    background: var(--eighteen-gradient-2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    color: white;
    margin-top: 25px;
    animation: eighteenPulse 2s infinite;
}

@keyframes eighteenPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== GAME TAB ===== */
.eighteen-game-container {
    text-align: center;
}

.eighteen-game-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--eighteen-font-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.eighteen-game-instructions {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.eighteen-game-score-info {
    background: var(--eighteen-secondary-bg);
    display: inline-block;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.eighteen-game-canvas-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.eighteen-game-canvas {
    background: var(--eighteen-primary-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.eighteen-game-canvas canvas {
    display: block;
    border-radius: 15px;
    max-width: 100%;
}

.eighteen-game-message {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    color: #4caf50;
    margin: 20px 0;
    min-height: 30px;
    display: none;
}

.eighteen-game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.eighteen-rotate-btn {
    background: white;
    border: 3px solid var(--eighteen-font-color);
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.eighteen-rotate-btn:hover {
    background: var(--eighteen-secondary-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.eighteen-rotate-btn svg {
    color: var(--eighteen-font-color);
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.eighteen-rotate-btn:hover svg {
    transform: rotate(360deg);
}

.eighteen-rotate-btn span {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

.eighteen-rotate-label {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
    text-transform: uppercase;
}

/* ===== QUIZ TAB ===== */
.eighteen-quiz-start,
.eighteen-quiz-question-screen,
.eighteen-quiz-result {
    padding: 20px;
}

.eighteen-quiz-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--eighteen-font-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.eighteen-quiz-intro {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-quiz-desc {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.eighteen-score-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.eighteen-score-item {
    background: var(--eighteen-gradient-1);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-score-label {
    display: block;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #666;
    margin-bottom: 5px;
}

.eighteen-score-value {
    display: block;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

/* Quiz Question Screen */
.eighteen-quiz-header {
    margin-bottom: 25px;
}

.eighteen-question-number {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--eighteen-font-color);
    margin-bottom: 15px;
    text-align: center;
}

.eighteen-progress-bar {
    background: #ddd;
    height: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.eighteen-progress-fill {
    background: var(--eighteen-secondary-bg);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.eighteen-question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-question-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
    line-height: 1.5;
    text-align: center;
}

.eighteen-options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.eighteen-quiz-option {
    background: white;
    border: 3px solid #ddd;
    padding: 20px;
    border-radius: 15px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-quiz-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--eighteen-secondary-bg);
}

.eighteen-quiz-option.eighteen-selected {
    background: var(--eighteen-secondary-bg);
    border-color: var(--eighteen-font-color);
    transform: translateY(-3px);
}

/* Quiz Result Screen */
.eighteen-result-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--eighteen-font-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.eighteen-result-score-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.eighteen-result-main-score {
    text-align: center;
}

.eighteen-result-score-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--eighteen-secondary-bg);
    line-height: 1;
}

.eighteen-result-score-total {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #666;
}

.eighteen-result-percentage {
    width: 150px;
    height: 150px;
}

.eighteen-circular-progress {
    width: 100%;
    height: 100%;
}

.eighteen-circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.eighteen-score-details {
    background: var(--eighteen-gradient-1);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
}

.eighteen-score-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.eighteen-score-detail-item:last-child {
    border-bottom: none;
}

.eighteen-detail-label {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #666;
}

.eighteen-detail-value {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    color: var(--eighteen-font-color);
}

.eighteen-improvement-badge {
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    margin-top: 15px;
    animation: eighteenPulse 2s infinite;
}

.eighteen-saved-message {
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    margin: 20px 0;
}

/* Quiz Review Table */
.eighteen-quiz-review {
    margin: 30px 0;
}

.eighteen-review-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--eighteen-font-color);
    margin-bottom: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 3px solid #ddd;
}

.eighteen-review-table-wrapper {
    overflow-x: auto;
}

.eighteen-review-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eighteen-review-table thead {
    background: var(--eighteen-secondary-bg);
}

.eighteen-review-table th {
    padding: 15px;
    text-align: left;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--eighteen-font-color);
    font-weight: bold;
}

.eighteen-review-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #333;
}

.eighteen-review-table tr:last-child td {
    border-bottom: none;
}

.eighteen-correct-row {
    background: #e8f5e9;
}

.eighteen-wrong-row {
    background: #ffebee;
}

.eighteen-correct-answer-hint {
    display: block;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    color: #4caf50;
    font-weight: bold;
    margin-top: 5px;
}

.eighteen-result-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
}

.eighteen-badge-correct {
    background: #4caf50;
    color: white;
}

.eighteen-badge-wrong {
    background: #f44336;
    color: white;
}

/* ===== BUTTONS ===== */
.eighteen-btn-primary {
    background: var(--eighteen-font-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
}

.eighteen-btn-primary:hover:not(.eighteen-btn-disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: #333;
}

.eighteen-btn-primary.eighteen-btn-large {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    padding: 20px 50px;
}

.eighteen-btn-primary.eighteen-btn-disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.eighteen-btn-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 15px auto;
}

.eighteen-btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

/* ===== CUSTOM SCROLLBAR ===== */
.eighteen-modal-content::-webkit-scrollbar {
    width: 12px;
}

.eighteen-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.eighteen-modal-content::-webkit-scrollbar-thumb {
    background: var(--eighteen-secondary-bg);
    border-radius: 10px;
}

.eighteen-modal-content::-webkit-scrollbar-thumb:hover {
    background: #e6b422;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /*  */
    @keyframes eighteenOrbit {
    from {
        transform: rotate(0deg) translateX(50px);
    }

    to {
        transform: rotate(360deg) translateX(50px);
    }
}
    /*  */
    .eighteen-modal-content {
        padding: 20px;
        border-radius: 20px;
    }

    .eighteen-tab-nav {
        flex-direction: row;
        justify-content: space-around;
    }

    .eighteen-tab-btn {
        min-width: 90px;
        padding: 12px 15px;
    }

    .eighteen-game-controls {
        gap: 15px;
    }

    .eighteen-rotate-btn {
        padding: 10px 15px;
    }

    .eighteen-rotate-label {
        font-size: 1.2rem;
    }

    .eighteen-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eighteen-result-score-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .eighteen-modal-content {
        padding: 15px;
    }

    .eighteen-modal-header {
        margin-bottom: 20px;
    }

    .eighteen-tab-btn {
        min-width: 80px;
        padding: 10px 12px;
    }

    .eighteen-tab-icon {
        font-size: 1.3rem;
    }

    .eighteen-tab-text {
        font-size: 0.8rem;
    }

    .eighteen-theory-sub-tabs {
        flex-direction: column;
    }

    .eighteen-theory-sub-nav-btn {
        width: 100%;
        border-radius: 10px;
        border-bottom: none;
        margin-bottom: 5px;
    }

    .eighteen-theory-sub-nav-btn.active {
        border-left: 5px solid var(--eighteen-font-color);
    }

    .eighteen-examples-grid {
        grid-template-columns: 1fr;
    }

    .eighteen-game-controls {
        flex-direction: column;
    }

    .eighteen-rotate-btn svg {
        width: 50px;
        height: 50px;
    }

    .eighteen-score-info {
        flex-direction: column;
        gap: 15px;
    }

    .eighteen-review-table {
        font-size: 0.85rem;
    }

    .eighteen-review-table th,
    .eighteen-review-table td {
        padding: 10px 5px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}